package cac.fenjian.resource.msfactory.dao;

import cac.fenjian.resource.MsFactory.dto.MsFactoryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MsFactoryDao {
    /**
     * 新增一条数据
     * @param msFactoryDTO
     * @return
     */
    public int insertMsFactoryDTO(MsFactoryDTO msFactoryDTO);

    /**
     * 批量新增数据
     * @param msFactoryDTOList
     * @return
     */
    public int insertBatchMsFactoryDTO(List<MsFactoryDTO> msFactoryDTOList );

    /**
     * 根据条件查询数据
     * @param msFactoryDTO
     * @return
     */
    public List<MsFactoryDTO> searchByParams(@Param("bean") MsFactoryDTO msFactoryDTO);

    /**
     * 根据id查询数据
     * @param id
     * @return
     */
    public MsFactoryDTO searchById(String id);

    /**
     * 更新数据
     * @param msFactoryDTO
     * @return
     */
    public int updateMsFactoryDTO(MsFactoryDTO msFactoryDTO);

    /**
     * 删除数据
     * @param id
     * @return
     */
    public int deleteMsFactoryDTO(String id);


}
